<?php
	 $conn = mysql_connect('localhost', 'root', 'vertrigo');
     mysql_select_db('tdc', $conn);
	 
	 function show($sql)
	 {
	 $query=mysql_query($sql);
	  $data = array();
		while ($row = mysql_fetch_assoc($query)) 
		{
			$data[] = $row;
		}
		return $data;
	 }
?>